import java.util.Scanner;

public class Test2_14 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        System.out.print("Enter weight in pounds: ");
        double weight_p = sc.nextDouble();
        System.out.print("Enter height in inches: ");
        double height_in = sc.nextDouble();
        double weight_kg = weight_p * 0.45359237;
        double height_m = height_in * 0.0254;
        double BMI = weight_kg / (height_m * height_m);

        System.out.println("BMI is " + String.format("%.4f", BMI));
    }
}
